#ifndef LOK2WINDOWMANAGER_H
#define LOK2WINDOWMANAGER_H

#include "defines.h"
//#include "LOK2ChatDisplay.h"
//#include "LOK2ChatInput.h"
#include "SDLTextBox.h"

class SDLTextBox;

class LOK2WindowManager {
public:
	LOK2WindowManager(SDL_Event *event);
	~LOK2WindowManager();

	void addWindow(SDLTextBox *pObject);

	void manage();

	bool requestLock(SDLTextBox *caller);
	bool releaseLock(SDLTextBox *caller);
	bool hasLock();
private:
	int m_Lock;
	std::vector < SDLTextBox * > m_ObjList;
	SDL_Event *m_Event;
};

#endif


